/*
 * @Author: Turump 
 * @Date: 2021-03-31 16:17:51 
 * @Last Modified by: Turump
 * @Last Modified time: 2021-04-01 17:06:40
 */


const { ccclass, property } = cc._decorator;

@ccclass("NodeTransform")
export default class NodeTransform {

    @property({ visible: false })
    private _pos: cc.Vec2 = cc.Vec2.ZERO;
    @property({ type: cc.Vec2, displayName:"坐标" })
    set pos(temp: cc.Vec2) {
        this._pos = temp;
    }
    get pos(): cc.Vec2 {
        return this._pos;
    }

    @property({ visible: false })
    private _scale: cc.Vec2 = new cc.Vec2(1, 1);
    @property({ type: cc.Vec2 })
    set scale(temp: cc.Vec2) {
        this._scale = temp;
    }
    get scale(): cc.Vec2 {
        return this._scale;
    }

    @property({ visible: false })
    private _rotate: number = 0;
    @property({ type: cc.Float, tooltip:"顺时针为正" })
    set rotate(temp: number) {
        this._rotate = temp;
    }
    get rotate(): number {
        return this._rotate;
    }

}

